package com.example.noteshare.asyncTasks;

import java.util.Map;

import com.example.noteshare.Utilities.HTTP;
import com.example.noteshare.Utilities.RequestType;

import android.os.AsyncTask;

public class AsyncPost extends AsyncTask<String, Void, String> {

	private String url;
	private Map<String, String> params;
	
	public AsyncPost(final String url, final Map<String, String> params){
		this.url = url;
		this.params = params;
	}
	
	@Override
	protected String doInBackground(String... args) {
		return HTTP.doRequest(RequestType.POST, url, params);
	}	
	
}
